#region

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

#endregion

namespace VinhSon.Intranet.Bussiness
{
    [Serializable]
    [Table("[dbo].[Role]")]
    public partial class Role
    {
        #region Properties

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Required]
        [Column("Id")]
        public Int32 Id { get; set; }

        [Column("Name")]
        public String Name { get; set; }

        [Column("Description")]
        public String Description { get; set; }

        [Column("Inactive")]
        public Boolean? Inactive { get; set; }

        [Column("LastModified")]
        public DateTime? LastModified { get; set; }

        #endregion

        #region Navigation

        public virtual ICollection<User> Users { get; set; }

        public virtual ICollection<Permission> Permissions { get; set; }

        #endregion
    }
}
